﻿namespace EyeOpen.Crypt.Web
{
    using EyeOpen.IO;

    internal class Converter
    {
        public EncryptionMessage Convert(EncryptionResult objectToConvert)
        {
            return
                new EncryptionMessage
                {
                    ClearTextLenght = objectToConvert.ClearTextLenght,
                    CompressedTextLenght = objectToConvert.CompressedTextLenght,
                    EncryptedTextLenght = objectToConvert.EncryptedTextLenght,
                    EncryptionType = objectToConvert.EncryptionType,
                    Text = objectToConvert.Text
                };
        }
    }
}
